package com.example.consumer.controller;

import com.example.consumer.client.ProviderClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ConsumerContorller {
    @Resource
    ProviderClient providerClient;

    @GetMapping("hi-feign")
    public String hiFeign(){
        return providerClient.hi("feign");
    }
}
